//
//  DownloadCell.h
//  News
//
//  Created by lanou3g on 15/11/9.
//  Copyright © 2015年 songhaowen. All rights reserved.
//

#import <UIKit/UIKit.h>
@class VideoModel, DownloadCell;

@protocol DownloadCellDelegate <NSObject>

- (void)downloadCellPlayButtonClicked:(DownloadCell *)cell isPlay:(BOOL)isPlay;

@end


@interface DownloadCell : UITableViewCell

@property (nonatomic, strong) VideoModel *model;

+ (instancetype)cellWithTableView:(UITableView *)tableView;

@property (nonatomic, assign) CGFloat videoProgress;
@property (nonatomic, assign) CGFloat speed;
@property (weak, nonatomic) IBOutlet UIButton *playButton;

@property (weak, nonatomic) IBOutlet UIView *progressView;
@property (weak, nonatomic) IBOutlet UIView *totalProgressView;

@property (nonatomic, assign) id<DownloadCellDelegate> delegate;
@property (weak, nonatomic) IBOutlet UILabel *videoSizeLabel;
@property (weak, nonatomic) IBOutlet UILabel *speedLabel;

@end
